<h:panelGroup layout="block"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:nxd="http://nuxeo.org/nxweb/document"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:nxl="http://nuxeo.org/nxforms/layout"
  id="#{widget.id}"
  styleClass="#{widgetProperty_styleClass}">

  <nxu:set var="contentView"
    value="#{contentViewActions.getContentViewWithProvider(widgetProperty_contentViewName)}"
    cache="true">
    <nxu:set var="resolvedAjaxReRender"
      value="#{nxu:componentAbsoluteId(component, widgetProperty_ajaxReRender)}"
      cache="false">
      <c:if test="#{contentView != null}">
        <nxl:layout name="#{contentView.searchLayout.name}"
          mode="search" value="#{contentView.searchDocumentModel}">
          <ui:define name="inside_input_widget">
            <c:if test="#{widgetControl_supportInsideInputWidgetEffects}">
              <a4j:ajax execute="@form"
                listener="#{contentViewActions.refreshAndRewind(contentView.name)}"
                render="@form #{resolvedAjaxReRender}" />
            </c:if>
          </ui:define>
        </nxl:layout>
      </c:if>
    </nxu:set>
  </nxu:set>

</h:panelGroup>